package Mapper

import (
	"github.com/gin-gonic/gin"
	"hr-system/Controller"
)

func PostManageGroup(r *gin.Engine) {
	PostManageRoutes := r.Group("/postManage")
	postManageController := Controller.NewPostManageController()
	PostManageRoutes.POST("/show", postManageController.PageList)// 展示&查询岗位
	PostManageRoutes.POST("", postManageController.Create)// 创建岗位
	PostManageRoutes.POST("/update/:id", postManageController.Update)// 更新
	PostManageRoutes.POST("/delete/:id", postManageController.Delete)// 删除
}
